package com.chennan.pattern.chain.gupao.auth;

import java.util.Objects;

/**
 * @author chennan
 * @create 2022-02
 */
public class ValideHandler extends AuthHandler{
    @Override
    public void handle(String auth) {
        if(Objects.isNull(auth)){
            System.out.println("权限校验失败");
            return;
        }
        System.out.println("权限校验成功。。。");
        if(Objects.nonNull(this.authHandler)){
            this.authHandler.handle(auth);
        }
    }
}
